/*
 * Copyright (c) 2024 Black Sesame Technologies
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

#ifndef _DAL_DDS_ENTITY_H_
#define _DAL_DDS_ENTITY_H_

#ifdef __cpluspluss
extern "C" {
#endif

typedef struct dal_publisher_s
{
    void* handle_;
} dal_publisher_t;

typedef struct dal_datawriter_s
{
    void* handle_;
    const void* type_support_impl_;
} dal_datawriter_t;

typedef struct dal_publisher_listener_s
{
    void* handle_;
} dal_publisher_listener_t;

typedef struct dal_subscriber_s
{
    void* handle_;
} dal_subscriber_t;

typedef struct dal_datareader_s
{
    void* handle_;
    const void* type_support_impl_;
} dal_datareader_t;

typedef struct dal_subscriber_listener_s
{
    void* handle_;
} dal_subscriber_listener_t;

// TOPIC
typedef struct dal_topic_s
{
    void* handle_;
    const void* type_support_impl_;
} dal_topic_t;

typedef dal_topic_t dal_topic_description_t;

typedef struct dal_topic_listener_s
{
    void* handle_;
} dal_topic_listener_t;

// service and client
typedef struct dal_service_s
{
    void* handle_;
    const void* req_reader_type_support_impl_;
    const void* resp_writer_type_support_impl_;
} dal_service_t;

typedef struct dal_client_s
{
    void* handle_;
    const void* req_writer_type_support_impl_;
    const void* resp_reader_type_support_impl_;
} dal_client_t;

#ifdef __cpluspluss
}
#endif

#endif  // _DAL_DDS_ENTITY_H_